<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class frontend extends TV_Controller
{
    
    protected $template = 'default'; 
    public $categoryPaths = array(); # an array of categories
    function Frontend()
	{
            parent::__construct();                
                
        require_once(APPPATH . '/libraries/app_constants.php');
        
        if(ENV_NAME == 'local')
        {
            $this->output->enable_profiler(TRUE);
        } 
        // Default sidebars
        $this->layout[AppContants::LAYOUT_RIGHT_SIDEBAR] = array();
        $this->layout[AppContants::LAYOUT_TOP] = array();
        
        //Default keyword search;
        $this->data['keywords'] = '';
        
        // Default css
        $this->layout[AppContants::LAYOUT_CSS] = array();
        //Default js
        $this->layout[AppContants::LAYOUT_JS] = array();
        // Breadcrumb
        $this->layout[AppContants::BREADCRUMB] = NULL;
        //Default active menu top
        $this->layout[AppContants::ACTIVE_MENU] = "";
        
                
        // Default meta header info
        $this->meta = array();
        $this->meta[AppContants::META_TITLE] = $this->config->item(AppContants::META_TITLE);
        $this->meta[AppContants::META_KEYWORDS] = $this->config->item(AppContants::META_KEYWORDS);
        $this->meta[AppContants::META_DESCRIPTION] = $this->config->item(AppContants::META_DESCRIPTION);
    }               
}
?>
